<template>
  <div>
    <el-row :gutter="20">
      <el-col :span="8"><div class="grid-content bg-purple">22</div></el-col>

      <el-row :gutter="15">
        <el-col :span="5">
          <div class="grid-content bg-purple-dark">
            <dl>
              <dt style="background-color: rgb(104, 84, 177)">
                <i class="el-icon-user"></i>
              </dt>
              <dd>
                <p
                  style="
                    font-size: 24px;
                    color: rgb(104, 84, 177);
                    text-align: center;
                  "
                >
                  1234
                </p>
                <p>用户访问量</p>
              </dd>
            </dl>
          </div>
        </el-col>
        <el-col :span="5"
          ><div class="grid-content bg-purple-dark">
            <dl>
              <dt style="background-color: rgb(39, 211, 182)">
                <i class="el-icon-user"></i>
              </dt>
              <dd>
                <p style="font-size: 24px; color: rgb(104, 84, 177)">1234</p>
                <p>系统消息</p>
              </dd>
            </dl>
          </div></el-col
        >
        <el-col :span="5"
          ><div class="grid-content bg-purple-dark">
            <dl>
              <dt style="background-color: rgb(197, 60, 60)">
                <i class="el-icon-user"></i>
              </dt>
              <dd>
                <p style="font-size: 24px; color: red">5000</p>
                <p>数量</p>
              </dd>
            </dl>
          </div></el-col
        >
      </el-row>
      <el-col :span="8"
        ><div class="grid-content1 bg-purple">
          <ul>
            <li style="height: 30px; border-bottom: 1px solid #eee">
              语音详情
            </li>
            <li>
              vue
              <el-progress :percentage="71.3" :color="Cur"></el-progress>
            </li>
            <li>
              JavaScript
              <el-progress :percentage="24.1"></el-progress>
            </li>
            <li>
              CSS
              <el-progress :percentage="13.7"></el-progress>
            </li>
            <li>
              HTML
              <el-progress :percentage="5.9"></el-progress>
            </li>
          </ul></div
      ></el-col>
      <el-col :span="16"
        ><div class="grid-content2 bg-purple">
          <as></as></div
      ></el-col>
    </el-row>
  </div>
</template>


<script>
import as from "./as";
export default {
  components: { as },
  data() {
    return {
      Cur: [
        { color: "#f56c6c", percentage: 71.3 },
        { color: "#e6a23c", percentage: 24.1 },
        { color: "#5cb87a", percentage: 13.7 },
        { color: "#1989fa", percentage: 80 },
        { color: "#6f7ad3", percentage: 100 },
      ],
    };
  },
};
</script>


<style lang="scss" scoped>
.el-row {
  margin-bottom: 20px;
  &:last-child {
    margin-bottom: 0;
  }
}
.el-col {
  border-radius: 4px;
}
.bg-purple-dark {
  height: 150px;
  background: #fff;
}
.bg-purple {
  background: #d3dce6;
}
.bg-purple-light {
  background: #e5e9f2;
}
.grid-content {
  border-radius: 4px;
  min-height: 36px;
}
.grid-content1 {
  height: 400px;
  border-radius: 4px;
  min-height: 36px;
}
.grid-content2 {
  height: 400px;
  border-radius: 4px;
  min-height: 36px;
}
.row-bg {
  padding: 10px 0;
  background-color: #f9fafc;
}
dl {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  dt {
    width: 50% !important;
    height: 100% !important;
    // background-color: rgb(104, 84, 177);
    i {
      width: 40%;
      height: 100%;
      color: #fff;
      font-size: 40px;
      line-height: 100px;
    }
  }
}
li {
  list-style: none;
}
ul {
  padding: 0px;
}
dl {
  padding: 0px;
  margin: 0px;
}
</style>